HttpAuthentication.createNTLMAuthentication

Returns a NTLMAuthentication object that stores the username, password, workstation and domain required for HTTP NTLM Authenication

Example:

 var auth = HttpAuthentication.createNTLMAuthentication("username", "password", "workstation", "domainname");
 var response = services.rest.get(.., .., .., auth);
 // alternative
 var auth2 = HttpAuthentication.createNTLMAuthentication("domainname\\username", "password", null, null);
 

returns NTLMAuthentication

Parameters

java.lang.String  username,  java.lang.String  password,  java.lang.String  workstation,  java.lang.String  domain,